#ifndef _TEST_APP
#define _TEST_APP

#include <vector>
#include "ofMain.h"
#include "ofxSimpleSerial.h"
#include "ofx3DUtils.h"
#include "ofTrueTypeFont.h"


class testApp : public ofBaseApp{

	public:

		testApp();

        int afstand;
        int teller;
        int total;

		void setup();
		void update();
		void draw();

        ofxSimpleSerial	serial;
		string		message;
        bool		red;
		bool		green;
		bool		blue;
		bool		requestRead;

		ofTrueTypeFont myFont;

        vector<int> lijstjeposities;
		vector<float> trail;
        int value;
        int numNoData;
        ofxCamera camera;
        bool data;
        bool debugteller;
        ofxLight light1; //this will be a directional light
        ofxLight light2; //this one a spot light
        ofxLight light3; //and this one a point light


        float centerX, centerY, centerZ;
        float rotX, rotY;

        bool bSmoothLight;
        float camX, camY, camZ;

        //testen
        int			x;
		float		targetX;
        int         carZ;
        int         debugReadCount;
        int         ease;

		void keyPressed  (int key);
		void keyReleased(int key);
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased(int x, int y, int button);
		void onNewMessage(string & message);
		void onNoData(string & message);
		void resized(int w, int h);

        ofSoundPlayer  background;

};

#endif
